package com.lxg.service.adminService;

import com.lxg.pojo.Books;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.ArrayList;

public interface AdminBooksService {

    /**
     * 添加一本图书
     * @param name
     * @param author
     * @param num
     * @param remainder
     * @param press
     * @param address
     */
    public boolean addBook(String name,String author,Integer num,
                        Integer remainder, String press,String address);

    /**
     * 管理员根据bid删除一本书
     * @param bid
     */
    public boolean deleteBookByBid(Integer bid);


    //查询全部图书种类的数量
    public Integer getTypeNumber();

    //查询全部图书库存
    public Integer getAllNum();

    //查询全部图书已借数量
    public Integer getBorrowNum();

    boolean adminUpdateBook(Integer bid,String name,Integer num,Integer remainder,String author,String address,String press);
}
